package cn.geckoai.droid.tv.launcher.receivers;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import java.util.Objects;

public class ReplacedReceiver extends BroadcastReceiver {
    private static String TAG = ReplacedReceiver.class.getSimpleName();
    @Override
    public void onReceive(Context context, Intent intent) {
        if (Objects.equals(intent.getAction(), Intent.ACTION_MY_PACKAGE_REPLACED)) {
            // Intent currIntent = new Intent(context, MainActivity.class);
            // currIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP);
            // context.startActivity(currIntent);
        }
    }
}